# need to do more loggings

JENKINS_HOME=/home/csdnjenkins
mkdir -p $JENKINS_HOME
chown -R 1000 $JENKINS_HOME

cat > $JENKINS_HOME/log.properties << EOF
handlers=java.util.logging.ConsoleHandler
jenkins.level=FINEST
java.util.logging.ConsoleHandler.level=FINEST
EOF


docker run -d --name csdn-jenkins -p 8081:8080 -p 50001:50000 \
	--env JAVA_OPTS="-Djava.util.logging.config.file=/var/jenkins_home/log.properties" \
	--add-host maven.csdn.net:192.168.4.201 --add-host mvn.csdn.net:192.168.4.201 \
	-v $JENKINS_HOME:/var/jenkins_home csdnjenkins
	



